﻿using System;
using System.Windows;
using System.Windows.Input;
using AvalonDock;
using IllSoft.Xvcc.Volano.Client;

namespace IllSoft.Xvcc.WpfUI
{
    /// <summary>
    /// Interaction logic for ChannelWindow.xaml
    /// </summary>
    public partial class QueryWindow : DocumentContent
    {
        private Query _query;

        public QueryWindow()
        {
            InitializeComponent();
        }

        public QueryWindow(Query query)
            : this()
        {
            this._query = query;

            /*this._query.Joined += new EventHandler<ChannelEventArgs>(_channel_Joined);
            this._query.Message += new EventHandler<MessageEventArgs>(_channel_Message);
            this._query.Parted += new EventHandler<PartEventArgs>(_channel_Parted);
            this._query.UserListReceived += new EventHandler<UserListEventArgs>(_channel_UserListReceived);*/

            //this._channel.Join();

            this.Title = this._query.Name;
        }
    }
}
